package com.burt.dao;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

import com.burt.domain.Employee;

/**
 * Description: User: Burt Date: 2018-08-26 Time: 21:56
 */
@Component
public interface EmployeeRepository extends ElasticsearchRepository<Employee, String> {
    /**
     * 根据id获取员工信息
     * 
     * @param id 员工id
     * @return {@link Employee}员工信息，不存在返回<code>null</code>
     */
    Employee queryEmployeeById(String id);
}
